package com.datamation.swadeshi.adapter;

import android.content.Context;
import android.net.wifi.WifiManager;

public class GetMacAddress {

	public String getMacAddress(Context context) {
	    WifiManager wimanager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE);
	    String macAddress = wimanager.getConnectionInfo().getMacAddress();
	    if (macAddress == null) {
	        macAddress = "No MAC Address";
	    }
	    return macAddress;
	}
}
